projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d78b67
)
Revert "When creating a widget path, use the widget type"
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 4 May 2016 17:52:09 +0000
(13:52 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 4 May 2016 17:52:22 +0000
(13:52 -0400)
This reverts commit
0d78b67bca8866a05d0d55d3d5c48aa7a90ff89e
.
As Benjamin points out: that'll break all widgets that query style
properties in their init function.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index dc566a1b9ee01b853ab4f9043b3aa855c8151b91..6fde52e92fcce5777d6338082575c59ab1955efa 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-16361,7
+16361,7
@@
gtk_widget_path_append_for_widget (GtkWidgetPath *path,
g_return_val_if_fail (path != NULL, 0);
g_return_val_if_fail (GTK_IS_WIDGET (widget), 0);
- pos = gtk_widget_path_append_type (path,
G_OBJECT_TYPE (widget
));
+ pos = gtk_widget_path_append_type (path,
gtk_css_node_get_widget_type (widget->priv->cssnode
));
gtk_widget_path_iter_set_object_name (path, pos, gtk_css_node_get_name (widget->priv->cssnode));
if (widget->priv->name)